import PageTools from '@/components/pageTools'
import ImageUpload from '@/components/ImageUpload'
import store from '@/store'
import ScreenFull from '@/components/ScreenFull'
import Lang from './Lang'
import TagsView from '@/components/TagsView'
export default {
  install(Vue) {
    Vue.component(PageTools.name, PageTools)
    Vue.component(ImageUpload.name, ImageUpload)
    Vue.component(ScreenFull.name, ScreenFull)
    Vue.component(Lang.name, Lang)
    Vue.component(TagsView.name, TagsView)
    // 定义全局方法
    Vue.prototype.check = function(point) {
      return store.state.user.userInfo.roles?.points.some(item => item.toLowerCase() === point.toLowerCase())
    }
  }
}
